package com.shensi.adminCollect.enums.station;


// wx=微信,zfb=支付宝,dzk=电子卡,xj=现金,cdk=车队卡,pos=pos机,dkq=实体卡,yhk=银行卡
public enum PayTypeNameEnum {

    WX("wx","微信支付"),
    ZFB("zfb","支付宝支付"),
    DZK("dzk","电子卡支付"),
    XJ("xj","现金支付"),
    CDK("cdk","车队卡支付"),
    POS("pos","POS机支付"),
    DKQ("dkq","实体卡支付"),
    YHK("yhk","银行卡支付"),
    ;

    private String value;

    private String text;

    PayTypeNameEnum(String value, String text){
        this.value = value;
        this.text = text;
    }

    public static String getPayTypeName(String value){
        for(PayTypeNameEnum payTypeEnum : PayTypeNameEnum.values()){
            if(payTypeEnum.getValue().equals(value)){
                return payTypeEnum.getText();
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
